#import "UIView+JXAdd.h"
@implementation UIView (JXAdd)
- (void)setCornerRadius:(CGFloat)cornerRadius
{
    self.layer.cornerRadius = cornerRadius;
    self.layer.masksToBounds = YES;
}
- (void)setBorderWidth:(CGFloat)borderWidth
{
    self.layer.borderWidth = borderWidth;
    self.layer.masksToBounds = YES;
}
- (void)setBorderColor:(UIColor *)borderColor
{
    self.layer.borderColor = borderColor.CGColor;
    self.layer.masksToBounds = YES;
}
- (CGFloat)cornerRadius
{
    return self.layer.cornerRadius;
}
- (CGFloat)borderWidth
{
    return self.layer.borderWidth;
}
- (UIColor *)borderColor
{
    return [UIColor colorWithCGColor:self.layer.borderColor];
}
- (void)setJx_isExclusiveTouch:(BOOL)jx_isExclusiveTouch {
    self.exclusiveTouch = jx_isExclusiveTouch;
}
- (BOOL)jx_isExclusiveTouch {
    return self.exclusiveTouch;
}
- (void)removeAllSubviews {
    while (self.subviews.count) {
        [self.subviews.lastObject removeFromSuperview];
    }
}
@end
